var j = 0;
var isClick = true;
$(".provinceChange").on("click",function(e){
	if(isClick){
		isClick = false;
		if(j==0){
			$(this).children("img").attr("src","img/Hguangdong1.png");
			$(".province").children("img").attr("src","img/Hhainan1.png");
			$(".test").css({
				"top":"33%"
			})
			$(".province").css({
				"top":"2%"
			})
			j = 1;
		}else if(j==1){
			$(this).children("img").attr("src","img/Hhainan.png");
			$(".province").children("img").attr("src","img/Hguangdong.png");
			$(".test").css({
				"top":"26%"
			})
			$(".province").css({
				"top":"4%"
			})
			j = 0;
		}
	}
	isClick = true;
	
	
})
$(".toMap").on("click",function(){
	$(".map").css("display","block");
	$(".first").css("display","none");
})
//ajax
var arrJd = [];
var arrWd = [];
function jdwd(){
	$.ajax({
		type:"get",
		url:"json/data.json",
		async:false,
		success:function(res){
			console.log(res);
			for(i=0;i<res.length;i++){
				arrJd.push(res[i].JD);
			}
			console.log(arrJd);
			arrJd = JSON.stringify(arrJd);
			sessionStorage.setItem("Arr",arrJd);
			return arrJd;
		}
	})
}
jdwd();
//arrJd = sessionStorage.getItem("Arr")
//arrJd = JSON.parse(arrJd);
console.log(arrJd);